#test1.out:test1.c
#	gcc test1.c -o test1.out
#test1.out:test1.o
#	gcc test1.o -o test1.out
#test1.o:test1.s
#	gcc -c test1.s -o test1.o
#test1.s:test1.i
#	gcc -S test1.i -o test1.s
#test1.i:test1.c
#	gcc -E test1.c -o test1.i



BIN=mytest
#SRC=$(shell ls *.c)
SRC=$(wildcard *.c)
OBJ=$(SRC:.c=.o)
CC=gcc
RM=rm -f


$(BIN):$(OBJ)   
	@$(CC) $^ -o $@
%.o:%.c
	@$(CC) -c $<


.PHONY:clean
clean:
	$(RM) $(BIN) $(OBJ)




#test1.out:test1.o
#	gcc test1.o -o test1.out
#test1.o:test1.c
#	gcc -c test1.c -o test1.o
#
#
#.PHONY:clean
#clean:
#	rm -f test1.out *.i *.s *.o
